package com.example.shiwu.db.model;


import com.example.shiwu.db.annotation.DbFiled;
import com.example.shiwu.db.annotation.DbPrimaryKey;
import com.example.shiwu.db.annotation.DbTable;

@DbTable("tb_device")
public class Device {
    //    是不是 变量名
    @DbPrimaryKey(value = "id", isAuto = true)
    @DbFiled("id")
    public Integer id;
    @DbFiled("item_id")
    public String itemId;//项目ID
    @DbFiled("sn")
    public String sn;//主机sn
    @DbFiled("box")
    public String box;//开关盒子id
    @DbFiled("status")
    public Integer status;//0未绑定1已绑定

    @DbFiled("create_time")
    public String createTime;
    @DbFiled("update_time")
    public String updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getBox() {
        return box;
    }

    public void setBox(String box) {
        this.box = box;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }


    public Device() {

    }

    public Device(String itemId) {
        this.itemId = itemId;
    }

    public Device(Integer id, String itemId, String sn, String box, Integer status, String createTime, String updateTime) {
        this.id = id;
        this.itemId = itemId;
        this.sn = sn;
        this.box = box;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
